<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="utf-8" />

<title>欢迎来到TTU</title>
<style type="text/css" id="header">
<!--
-->
</style>
<link href="index_2.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
	
	// Check if vaules in Var EmailAddress is actually a email address.
	function isValidEmailAddress(EmailAddress){
      //EmailAddress = 'example@example.com';
      re1='([\\w-+]+(?:\\.[\\w-+]+)*@(?:[\\w-]+\\.)+[a-zA-Z]{2,7})';	// Email Address Pattern

      p = new RegExp(re1,["i"]);
      m = p.exec(EmailAddress);
      if (m != null)
      {
          email1=m[1];
          //document.write("("+email1.replace(/</,"&lt;")+")"+"\n");
		  return true;
      }
	  else{
		return false;
	  }
	}
	
	function isVaildPasswordField(Password_1,Password_2){
		if( Password_1.toString() != Password_2.toString() ){
			return false;
		}
		else
			return true;
	}
	
	function RegeisterCheck(){
		$('mask').style.height = document.body.clientHeight + 'px';
		$('mask').style.width  = document.body.clientWidth  + 'px';
		$('mask').style.display='block';
		
		$('regist_area').style.top = (document.body.clientHeight - 350)/2 + 'px';
		$('regist_area').style.left = (document.body.clientWidth-600)/2 + 'px';
		$('regist_area').style.dislay = 'block';
	}
	
	function RegeisterClose(){
		$('regist_area').style.display = 'none';
		$('mask').style.display = 'none';
	}
</script>


</head>

<body>
<div id="container">
  <div id="header">
	  <div id="logo_area"><img src="image/logo.jpg" width="480" height="250" /></div>
	  <div id="login_area">
      	<form action="login.php" method="post" name="login_form">
		  <table width="320" cellpadding="0" cellspacing="0">
 				<tr>
   					<td width="20" height="51">&nbsp;</td>
			    	<td width="278" id="login_1">登陆微博</td>
    				<td width="20" id="login_1">&nbsp;</td>
    			</tr>
  				<tr>
    				<td height="24">&nbsp;</td>
				  <td id="login_2">Email address</td>
    				<td id="login_2">&nbsp;</td>
    			</tr>
  				<tr>
    				<td height="39">&nbsp;</td>
       	 		  <td><input name="email" class="form_input" type="text"  /></td>
    				<td>&nbsp;</td>
    			</tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td id="login_2">Password</td>
    				<td id="login_2">&nbsp;</td>
    			</tr>
  				<tr>
	      		  	<td height="39">&nbsp;</td>
		    	  <td><input name="passwd" class="form_input" type="password"  /></td>
    				<td>&nbsp;</td>
   				</tr>
  				<tr>
    				<td height="19">&nbsp;</td>
    				<td id="login_3"><input name="remember" type="checkbox" value="" checked />Remember me on this computer</td>
    				<td id="login_3">&nbsp;</td>
    			</tr>
  				<tr>
    				<td height="40">&nbsp;</td>
    				<td><div id="login_button">
    				  <input name="login_image" type="image"  src="button/login_button.jpg" width="65" height="30" />
    				</div>
   		      		<div id="regist_button"></div></td>
    				<td>&nbsp;</td>
    			</tr>
		  </table><input name="login" type="hidden" value="yes" />
		</form>
      </div>
      <div id="regist_area">
      	<form action="regist.php" method="post" name="regist_form">
        <table width="500" height="567" cellpadding="0" cellspacing="0">
          <tr>
            <td width="14" height="37">&nbsp;</td>
            <td colspan="3">&nbsp;</td>
          </tr>
          <tr>
            <td height="48">&nbsp;</td>
            <td colspan="3" id="login_1">欢迎注册<font color="#9c3">TTU</font>微博</td>
          </tr>
          <tr>
            <td height="60">&nbsp;</td>
            <td width="106" class="regist_name">邮箱：</td>
            <td width="213"><input name="regist_email" class="regist_value"type="text" />&nbsp;</td>
            <td width="165"><div class="regist_checked"></div></td>
          </tr>
          <tr>
            <td height="60">&nbsp;</td>
            <td class="regist_name">昵称：</td>
            <td><input name="regist_nickname" class="regist_value" type="text" />&nbsp;</td>
            <td><div class="regist_checked"></div></td>
          </tr>
          <tr>
            <td height="60">&nbsp;</td>
            <td class="regist_name">密码：</td>
            <td><input name="regist_passwd" class="regist_value" type="password" />&nbsp;</td>
            <td><div class="regist_checked"></div></td>
          </tr>
         <!-- <tr>
            <td height="60">&nbsp;</td>
            <td class="regist_name">校园卡号：</td>
            <td><input name="card_num" class="regist_value" type="text" />&nbsp;</td>
            <td><div class="regist_checked"></div></td>
          </tr>
          <tr>
            <td height="60">&nbsp;</td>
            <td class="regist_name">查询密码：</td>
            <td><input name="card_password" class="regist_value" type="password" />&nbsp;</td>
            <td><div class="regist_checked"></div></td>
          </tr>
          <tr>
            <td height="60">&nbsp;</td>
            <td class="regist_name">院系：</td>
            <td><div id="regist_dept">
            <select name="dept">
           	  <option>----您的院系----</option>
              <option>计算机与软件学院</option>
              <option>师范学院</option>
              <option>文学院</option>
              <option>外国语学院</option>
              <option>传播学院</option>
              <option>经济学院</option>
              <option>管理学院</option>
              <option>法学院</option>
              <option>艺术设计学院</option>
              <option>数学与计算科学学院</option>
              <option>物理科学与技术学院</option>
              <option>化学与化工学院</option>
              <option>材料学院</option>
              <option>信息工程学院</option>
              <option>建筑与城市规划学院</option>
              <option>土木工程学院</option>
              <option>电子科学与技术学院</option>
              <option>机电与控制工程学院</option>
              <option>生命科学学院</option>
              <option>光电工程学院</option>
              <option>高尔夫学院</option>
              <option>医学院</option>
              <option>国际交流学院</option>
              <option>成人教育学院</option>
            </select></div></td>
            <td><div class="regist_checked"></div></td>
          </tr>-->
          <tr>
            <td height="60">&nbsp;</td>
            <td class="regist_name">验证码：</td>
            <td><input name="check" id="regist_check" type="text" />
            <div id="regist_checkImg"></div></td>
            <td><div class="regist_checked"></div></td>
          </tr>
          <tr>
            <td height="60">&nbsp;</td>
            <td class="regist_name">&nbsp;</td>
            <td id="user_read"><input name="regist_makesure" type="checkbox" value="" checked />
            我已认真阅读<a href="regulations.html">使用条例</a></td>
            <td><div id="regist_submit">
              <input name="regist_button" type="image" src="button/registing1.jpg"/>
            </div></td>
          </tr>
        </table>
        <input name="regist" type="hidden" value="yes"/>
        </form>
</div>
      <div id="first">
      	<div class="saying">Who are using TTU? </div>
       	<div id="people">
          		<div class="photo"><img src="head_image/01.jpg" width="150" height="150" /></div>
          		<div class="photo"><img src="head_image/02.jpg" width="150" height="150" /></div>
                <div class="photo"><img src="head_image/03.jpg" width="150" height="150" /></div>
                <div class="photo"><img src="head_image/04.jpg" width="150" height="150" /></div>
				<div class="photo"><img src="head_image/05.jpg" width="150" height="150" /></div>
                <div class="photo"><img src="head_image/06.jpg" width="150" height="150" /></div>
                <div class="photo"><img src="head_image/07.jpg" width="150" height="150" /></div>
                <div class="photo"><img src="head_image/08.jpg" width="150" height="150" /></div>
          		<div class="photo"><img src="head_image/09.jpg" width="150" height="150" /></div>
          		<div class="photo"><img src="head_image/10.jpg" width="150" height="150" /></div>
        </div>
    </div>
</div>
	<div id="second">
	  <div class="saying">they are saying:</div>
	  <div id="blog">
	    <div id="small_photo"><?php echo "<img src='head_image/01.jpg' width='60' height='60'>"?></div>
	    <div id="blog_words"><?php	include_once("sql_connect.php");include_once("msg_redirect.php");?>
	    <?php 
	    	$my_sql = mysql_query("select * from user_info,weibo where user_info.u_no = weibo.u_no");
	    	$my_result = mysql_fetch_array($my_sql);
	    	echo $my_result[u_name].": ".$my_result[w_content];
	    ?></div>
      </div>
  	</div>
  <div id="third">
   	<div class="saying">热度排行榜</div>
<table width="200" border="0" align="left" cellpadding="0" cellspacing="0">
		  <tr>
   			  <td width="50" height="37" valign="bottom">&nbsp;</td>
   			  <td width="100" valign="bottom" class="ranking_name">大章鱼</td>
   			  <td width="50" valign="bottom" class="ranking_num">2，000</td>
		  </tr>
		  <tr>
   			  <td height="37" valign="bottom">&nbsp;</td>
   			  <td valign="bottom" class="ranking_name">Peter</td>
			  <td valign="bottom" class="ranking_num">1,923</td>
		  </tr>
		  <tr>
   			  <td height="37" valign="bottom">&nbsp;</td>
			  <td valign="bottom" class="ranking_name">ttu</td>
   			  <td valign="bottom" class="ranking_num">1,754</td>
		  </tr>
		  <tr>
			  <td height="37" valign="bottom">&nbsp;</td>
			  <td valign="bottom" class="ranking_name">夏菲</td>
   			  <td valign="bottom" class="ranking_num">1,455</td>
		  </tr>
		  <tr>
   			  <td height="37" valign="bottom">&nbsp;</td>
   			  <td valign="bottom" class="ranking_name">操作系统一统江湖</td>
   			  <td valign="bottom" class="ranking_num">1,422</td>
		  </tr>
		  <tr>
   			  <td height="37" valign="bottom">&nbsp;</td>
   			  <td valign="bottom" class="ranking_name">高数避过</td>
   			  <td valign="bottom" class="ranking_num">1,275</td>
		  </tr>
		  <tr>
   			  <td height="37" valign="bottom">&nbsp;</td>
   			  <td valign="bottom" class="ranking_name">点滴</td>
   			  <td valign="bottom" class="ranking_num">1,123</td>
		  </tr>
		  <tr>
   			  <td height="37" valign="bottom">&nbsp;</td>
   			  <td valign="bottom" class="ranking_name">如果你心里只有她</td>
   			  <td valign="bottom" class="ranking_num">1,002</td>
		  </tr>
	  </table>
  </div>
  <div id="footer">IBM项目网站&nbsp;版权所有<br />mobile: 633721&nbsp;&nbsp;E-mail: chen_zx_happy@163.com</div>
</div>
</body>
</html>